from passlib.hash import pbkdf2_sha256

# 密码加密
encryptPass = pbkdf2_sha256.hash("123456")
print("加密数据",encryptPass)

# 验证密码
res = pbkdf2_sha256.verify("123456",encryptPass)
print("验证数据",res)